package com.study.portal.dao.impl;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.study.portal.dao.IUserAccountDao;
import com.study.portal.pojo.UserAccount;

public class UserAccountDaoImpl extends SqlMapClientDaoSupport implements IUserAccountDao {

	public UserAccount login(String userEmail, String pwd) {
		UserAccount user = new UserAccount();
		user.setUserEmail(userEmail);
		user.setUserPwd(pwd);
		return (UserAccount)getSqlMapClientTemplate().queryForObject("LOGIN_FOR_USER", user);
	}

}
